package com.zhichat.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhichat.entity.ContactInfoEntity;
import com.zhichat.web.vo.ContactItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 联系人信息管理表
 *
 * @author zqli
 * @email lzq@hello.com
 * @date 2024-11-09 22:14:14
 */
@Mapper
@Repository
public interface ContactInfoDao extends BaseMapper<ContactInfoEntity> {

    int insertOrUpdate(ContactInfoEntity entity);

    List<ContactItemVO> getContactList(@Param("userId") Long userId, @Param("type") Integer type);

    void bulk(List<ContactInfoEntity> list);
}
